﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Communergy.Common
{
    [ServiceContract]
    public interface IMeterRepository
    {
        [OperationContract]
        void CreateNewMeter(Meter meterToCreate);

        [OperationContract]
        Meter RetrieveMeterDetails(string meterId);

        [OperationContract]
        void SaveMeterDetails(Meter meterToSave);

        [OperationContract]
        List<Meter> GetMetersForUser(string userId);

        void AddSourceToMeter(Meter meter, MeterSource meterSource);

        MeterSource RetrieveSourceDetails(string sourceId);
    }
}
